* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
}
/* 全站圖片響應式處理 */
img {
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

/* 文章內容區域的圖片特別處理 */
.article-content img,
.list-content img,
.main-content img {
    display: block;
    margin: 15px auto;
    border-radius: 4px;
}

/* 移動端特別處理 */
@media (max-width: 768px) {
    img {
        width: auto;
        max-width: 100%;
        height: auto !important;
    }
    
    /* 確保內容區域的圖片在移動端完全適應 */
    .article-content img,
    .list-content img,
    .main-content img {
        width: 100%;
    }
}
body {
    /* 使用更明亮的深蓝色背景，给人清爽感 */
    background-color: #f0f5fa;
    color: #333333;
    line-height: 1.6;
}

body.header-fixed {
    padding-top: 150px; /* 增加固定导航时的内容上边距，防止内容被覆盖 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 頂部導航欄 - 只有LOGO区域保持白色 */
.header {
    background-color: #0f4c81; /* 添加深色背景 */
    padding: 15px 0 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 頂部區域 - LOGO和登錄註冊按鈕 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.logo {
    max-width: 300px;
    height: 50px;
    display: flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

/* 註冊登錄按鈕 - 調整到右上角 */
.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 0; /* 移除頂部間距 */
}

/* 註冊按鈕樣式 */
.register-button {
    background-color: #16a085;
    color: #fff;
}

.register-button:hover {
    background-color: #138a72;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 登錄按鈕樣式 */
.login-button {
    background-color: #ff9d2f;
    color: #ffffff;
}

.login-button:hover {
    background-color: #f08c1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 導航欄 - 深蓝色渐变背景 */
.main-menu-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: linear-gradient(to right, #1a4b8c, #2c6bc4); /* 深蓝色渐变 */
    border-radius: 0; /* 移除圓角 */
    padding: 12px 0; /* 增加内边距 */
    margin-top: 0; /* 与顶部无间距 */
    margin-bottom: 5px; /* 添加底部间距 */
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-menu li {
    margin: 0 15px;
}

.main-menu a {
    color: #ffffff; /* 白色文字 */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.main-menu a:hover {
    color: #ff9d2f; /* 悬停时变为橙色 */
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

/* 漢堡菜單按鈕 */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff !important; /* 强制使用白色 */
    z-index: 101;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #ffffff !important;
        font-size: 20px; /* 减小菜单图标大小 */
    }

    .header {
        padding: 5px 0 0 0;
    }

    .header-content {
        margin-bottom: 5px;
    }

    .header-top {
        min-height: 45px; /* 设置最小高度 */
        padding: 5px 0;
        margin-bottom: 0;
    }

    .logo {
        height: 35px;
        margin: 0 auto;
        padding: 0 5px;
    }

    .logo img {
        height: 35px;
        width: auto;
    }
}

/* 左側導航樣式 */
body .side-nav,
.header .side-nav,
.side-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--primary-dark) !important; /* 使用主题变量 */
    background: var(--primary-dark) !important; /* 双重保证 */
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.side-nav.active {
    left: 0;
    background-color: var(--primary-dark) !important;
}

.side-nav-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

.side-nav-close i {
    color: #ffffff;
}

.side-nav-logo {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.side-nav-logo img {
    max-width: 150px;
}

.side-nav-menu {
    list-style: none;
    margin-bottom: 30px;
}

.side-nav-menu li {
    margin-bottom: 15px;
}

.side-nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.side-nav-menu a:hover {
    color: #ff9d2f;
}

.side-nav-auth {
    margin-top: 30px;
}

.side-nav-auth .auth-buttons {
    flex-direction: column;
    gap: 10px;
}

.side-nav-auth .auth-button {
    width: 100%;
}

/* 遮罩層 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
}

/* 頁尾樣式 - 渐变蓝色 */
footer {
    background: linear-gradient(to bottom, #2b4b6f, #1e3553);
    padding: 50px 0 20px;
    color: #ffffff;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #ff9d2f;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #cccccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 版权区域 - 深蓝色 */
.copyright {
    background-color: #152238;
    padding: 15px 0;
    text-align: center;
    color: #aaaaaa;
    font-size: 14px;
}

.sitemap {
    margin-top: 10px;
    text-align: center;
}

.sitemap a {
    color: #b0b0b0;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

/* 新的现代化底部样式 */
.modern-footer {
    position: relative;
    background: linear-gradient(135deg, #1a2a6c, #2C5364);
    color: #f0f0f0;
    padding: 0 0 0;
    margin-top: 40px;
    overflow: hidden;
}

/* 波浪装饰 */
.footer-wave-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.footer-wave-decoration svg {
    width: 100%;
    height: 50px;
}

/* 底部卡片容器 */
.footer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 60px 0 30px;
}

/* 底部卡片样式 */
.footer-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 卡片头部 */
.card-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.card-header:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.card-header.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.card-header i {
    font-size: 20px;
    margin-right: 12px;
    color: #ff9d2f;
}

.card-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.toggle-icon {
    font-size: 16px !important;
    margin-right: 0 !important;
    transition: transform 0.3s ease;
    color: #ffffff !important;
}

.card-header.active .toggle-icon.fa-chevron-up {
    transform: rotate(180deg);
}

/* 卡片内容 */
.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

/* 平台联系方式统一样式 */
.platform-hours,
.platform-contact,
.platform-fax,
.platform-email,
.platform-website,
.platform-main {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.platform-hours i,
.platform-contact i,
.platform-fax i,
.platform-email i,
.platform-website i,
.platform-main i {
    margin-right: 10px;
    color: #ff9d2f;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.platform-hours p,
.platform-contact p,
.platform-fax p,
.platform-email p,
.platform-website p,
.platform-main p {
    margin: 0;
    flex: 1;
}

.platform-website a, .platform-main a {
    color: #ff9d2f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.platform-website a:hover, .platform-main a:hover {
    color: #ffb861;
    text-decoration: underline;
}

/* 用户支持和平台政策容器样式优化 - 为单行显示添加 */
@media (min-width: 768px) {
    .footer-card .card-content {
        padding: 15px;
    }
    
    /* 改为单列显示 */
    .footer-card .support-links,
    .footer-card .policy-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .support-link .link-text,
    .policy-link .link-text {
        max-width: calc(100% - 35px); /* 考虑图标宽度和右侧间距 */
    }
}

/* 确保链接完整显示在移动设备上 */
@media (max-width: 767px) {
    .support-link .link-text,
    .policy-link .link-text {
        max-width: calc(100% - 30px); /* 减去图标和内边距的宽度 */
    }
}

/* 支持链接样式 - 调整为单列显示 */
.support-links, .policy-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
}

.support-links a, .policy-links a {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.support-links a:hover, .policy-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px);
}

.support-links a i, .policy-links a i {
    margin-right: 8px;
    color: #ff9d2f;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

/* 用户支持链接图标样式 */
.support-link {
    position: relative;
    padding-left: 30px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.support-link .link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px; /* 限制最大宽度 */
}

.support-link:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    width: 24px;
    text-align: center;
    color: #ff9d2f; /* 橙色图标，与顶部图标一致 */
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* 防止图标被压缩 */
}

.support-link:hover:before {
    color: #3a7bd5; /* 悬停时变为蓝色 */
    transform: translateX(3px);
}

/* 特定图标样式 - 使用固定选择器确保一致性 */
.footer-card.user-support .support-links a:nth-child(1):before { content: '\f095'; } /* 客服/电话 */
.footer-card.user-support .support-links a:nth-child(2):before { content: '\f3d1'; } /* 提款 */
.footer-card.user-support .support-links a:nth-child(3):before { content: '\f0d6'; } /* 存款 */
.footer-card.user-support .support-links a:nth-child(4):before { content: '\f059'; } /* 常见问题 */
.footer-card.user-support .support-links a:nth-child(5):before { content: '\f3cd'; } /* APP/手机 */
.footer-card.user-support .support-links a:nth-child(6):before { content: '\f521'; } /* VIP/皇冠 */

/* 额外图标样式 */
.footer-card.user-support .support-links a.game-icon:before { content: '\f11b'; } /* 游戏图标 */
.footer-card.user-support .support-links a.location-icon:before { content: '\f3c5'; } /* 位置图标 */
.footer-card.user-support .support-links a.system-icon:before { content: '\f085'; } /* 系统图标 */
.footer-card.user-support .support-links a.default-icon:before { content: '\f05a'; } /* 默认信息图标 */

/* 平台政策链接图标样式 */
.policy-link {
    position: relative;
    padding-left: 30px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.policy-link .link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px; /* 限制最大宽度 */
}

.policy-link:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    width: 24px;
    text-align: center;
    color: #ff9d2f; /* 橙色图标，与顶部图标一致 */
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* 防止图标被压缩 */
}

.policy-link:hover:before {
    color: #3a7bd5; /* 悬停时变为蓝色 */
    transform: translateX(3px);
}

/* 特定图标样式 - 使用固定选择器确保一致性 */
.footer-card.platform-policies .policy-links a:nth-child(1):before { content: '\f023'; } /* 隐私图标 */
.footer-card.platform-policies .policy-links a:nth-child(2):before { content: '\f2bd'; } /* 客户/用户图标 */
.footer-card.platform-policies .policy-links a:nth-child(3):before { content: '\f4fe'; } /* 责任图标 */
.footer-card.platform-policies .policy-links a:nth-child(4):before { content: '\f005'; } /* 品牌/星级图标 */
.footer-card.platform-policies .policy-links a:nth-child(5):before { content: '\f521'; } /* 娱乐/VIP图标 */
.footer-card.platform-policies .policy-links a:nth-child(6):before { content: '\f095'; } /* 联系图标 */

/* 额外图标样式 */
.footer-card.platform-policies .policy-links a.privacy-icon:before { content: '\f023'; } /* 隐私图标 */
.footer-card.platform-policies .policy-links a.customer-icon:before { content: '\f2bd'; } /* 客户图标 */
.footer-card.platform-policies .policy-links a.responsibility-icon:before { content: '\f4fe'; } /* 责任图标 */
.footer-card.platform-policies .policy-links a.brand-icon:before { content: '\f005'; } /* 品牌图标 */
.footer-card.platform-policies .policy-links a.entertainment-icon:before { content: '\f521'; } /* 娱乐图标 */
.footer-card.platform-policies .policy-links a.contact-icon:before { content: '\f095'; } /* 联系图标 */
.footer-card.platform-policies .policy-links a.default-icon:before { content: '\f05a'; } /* 默认信息图标 */

/* 移動端適配 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-top {
        position: relative;
        justify-content: center;
        padding: 5px 0; /* 减小顶部内边距 */
        margin-bottom: 5px; /* 减小底部间距 */
    }
    
    .logo {
        height: 35px; /* 减小移动端logo高度 */
        margin: 0 auto;
    }
    
    .header-top .auth-buttons {
        display: none;
    }
    
    .main-menu-container {
        display: none;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* 快速联系栏 */
.quick-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.contact-option {
    flex: 0 0 auto;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.contact-button i {
    margin-right: 8px;
    font-size: 18px;
}

.contact-button.live-chat {
    background-color: #1e88e5;
    color: #ffffff;
}

.contact-button.live-chat:hover {
    background-color: #1976d2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.contact-button.register {
    background-color: #ff9d2f;
    color: #ffffff;
}

.contact-button.register:hover {
    background-color: #f08c1a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 157, 47, 0.3);
}

/* 底部版权区域 */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.copyright-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    font-size: 14px;
    color: #b0b0b0;
}

.copyright-text i {
    margin-right: 5px;
}

.divider {
    margin: 0 8px;
    opacity: 0.5;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 5px;
}

.footer-links a:hover {
    color: #ffffff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-cards {
        grid-template-columns: 1fr;
    }
    
    .copyright-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .support-links, .policy-links {
        grid-template-columns: 1fr;
    }
}

/* 頁腳信息列表樣式 */
.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
}